<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/23 0023
  Time: 11:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    request.setCharacterEncoding("utf-8");
%>
<html>
<head>
    <title>forTokens迭代遍历</title>
</head>
<body>

<%
    String name="hu,an,gb,iao";
    request.setAttribute("name",name);
%>

<c:forTokens var="item" items="${requestScope.name}" delims=",">
    ${item}
</c:forTokens>

</body>
</html>
